home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / richedit.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  4.9 KB  |  282 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'RichEdit.pas' rev: 3.00
  6.  
  7. #ifndef RichEditHPP
  8. #define RichEditHPP
  9. #include <Windows.hpp>
  10. #include <Messages.hpp>
  11. #include <SysInit.hpp>
  12. #include <System.hpp>
  13.  
  14. //-- user supplied -----------------------------------------------------------
  15. #include <RichEdit.h>
  16.  
  17. namespace Richedit
  18. {
  19. //-- type declarations -------------------------------------------------------
  20. struct TCharFormatA
  21. {
  22.     int cbSize;
  23.     int dwMask;
  24.     int dwEffects;
  25.     int yHeight;
  26.     int yOffset;
  27.     int crTextColor;
  28.     Byte bCharSet;
  29.     Byte bPitchAndFamily;
  30.     char szFaceName[32];
  31. } ;
  32.  
  33. struct TCharFormatW
  34. {
  35.     int cbSize;
  36.     int dwMask;
  37.     int dwEffects;
  38.     int yHeight;
  39.     int yOffset;
  40.     int crTextColor;
  41.     Byte bCharSet;
  42.     Byte bPitchAndFamily;
  43.     wchar_t szFaceName[32];
  44. } ;
  45.  
  46. typedef TCharFormatA  TCharFormat;
  47.  
  48. typedef _charrange  TCharRange;
  49.  
  50. struct TTextRangeA
  51. {
  52.     _charrange chrg;
  53.     char *lpstrText;
  54. } ;
  55.  
  56. struct TTextRangeW
  57. {
  58.     _charrange chrg;
  59.     wchar_t *lpstrText;
  60. } ;
  61.  
  62. typedef TTextRangeA  TTextRange;
  63.  
  64. typedef int __stdcall (*TEditStreamCallBack)(int dwCookie, Windows::PByte pbBuff, int cb, int &pcb);
  65.     
  66.  
  67. typedef _editstream  TEditStream;
  68.  
  69. struct TFindTextA
  70. {
  71.     _charrange chrg;
  72.     char *lpstrText;
  73. } ;
  74.  
  75. struct TFindTextExA
  76. {
  77.     _charrange chrg;
  78.     char *lpstrText;
  79.     _charrange chrgText;
  80. } ;
  81.  
  82. struct TFindTextW
  83. {
  84.     _charrange chrg;
  85.     wchar_t *lpstrText;
  86. } ;
  87.  
  88. struct TFindTextExW
  89. {
  90.     _charrange chrg;
  91.     wchar_t *lpstrText;
  92.     _charrange chrgText;
  93. } ;
  94.  
  95. typedef TFindTextA  TFindText;
  96.  
  97. typedef _formatrange  TFormatRange;
  98.  
  99. typedef _paraformat  TParaFormat;
  100.  
  101. struct TCharFormat2A
  102. {
  103.     int cbSize;
  104.     int dwMask;
  105.     int dwEffects;
  106.     int yHeight;
  107.     int yOffset;
  108.     int crTextColor;
  109.     Byte bCharSet;
  110.     Byte bPitchAndFamily;
  111.     char szFaceName[32];
  112.     Word wWeight;
  113.     short sSpacing;
  114.     int crBackColor;
  115.     int lid;
  116.     int dwReserved;
  117.     short sStyle;
  118.     Word wKerning;
  119.     Byte bUnderlineType;
  120.     Byte bAnimation;
  121.     Byte bRevAuthor;
  122.     Byte bReserved1;
  123. } ;
  124.  
  125. struct TCharFormat2W
  126. {
  127.     int cbSize;
  128.     int dwMask;
  129.     int dwEffects;
  130.     int yHeight;
  131.     int yOffset;
  132.     int crTextColor;
  133.     Byte bCharSet;
  134.     Byte bPitchAndFamily;
  135.     wchar_t szFaceName[32];
  136.     Word wWeight;
  137.     short sSpacing;
  138.     int crBackColor;
  139.     int lid;
  140.     int dwReserved;
  141.     short sStyle;
  142.     Word wKerning;
  143.     Byte bUnderlineType;
  144.     Byte bAnimation;
  145.     Byte bRevAuthor;
  146.     Byte bReserved1;
  147. } ;
  148.  
  149. typedef TCharFormat2A  TCharFormat2;
  150.  
  151. struct TParaFormat2
  152. {
  153.     int cbSize;
  154.     int dwMask;
  155.     Word wNumbering;
  156.     Word wReserved;
  157.     int dxStartIndent;
  158.     int dxRightIndent;
  159.     int dxOffset;
  160.     Word wAlignment;
  161.     short cTabCount;
  162.     int rgxTabs[32];
  163.     int dySpaceBefore;
  164.     int dySpaceAfter;
  165.     int dyLineSpacing;
  166.     short sStyle;
  167.     Byte bLineSpacingRule;
  168.     Byte bCRC;
  169.     Word wShadingWeight;
  170.     Word wShadingStyle;
  171.     Word wNumberingStart;
  172.     Word wNumberingStyle;
  173.     Word wNumberingTab;
  174.     Word wBorderSpace;
  175.     Word wBorderWidth;
  176.     Word wBorders;
  177. } ;
  178.  
  179. typedef _msgfilter *PMsgFilter;
  180.  
  181. typedef _msgfilter  TMsgFilter;
  182.  
  183. struct TReqSize;
  184. typedef TReqSize *PReqSize;
  185.  
  186. struct TReqSize
  187. {
  188.     tagNMHDR nmhdr;
  189.     Windows::TRect rc;
  190. } ;
  191.  
  192. typedef _selchange *PSelChange;
  193.  
  194. typedef _selchange  TSelChange;
  195.  
  196. struct TEndDropFiles
  197. {
  198.     tagNMHDR nmhdr;
  199.     int hDrop;
  200.     int cp;
  201.     BOOL fProtected;
  202. } ;
  203.  
  204. typedef _enprotected *PENProtected;
  205.  
  206. typedef _enprotected  TENProtected;
  207.  
  208. typedef _ensaveclipboard *PENSaveClipboard;
  209.  
  210. typedef _ensaveclipboard  TENSaveClipboard;
  211.  
  212. #pragma pack(push, 1)
  213. struct TENOleOpFailed
  214. {
  215.     tagNMHDR nmhdr;
  216.     int iob;
  217.     int lOper;
  218.     HRESULT hr;
  219. } ;
  220. #pragma pack(pop)
  221.  
  222. #pragma pack(push, 1)
  223. struct TObjectPositions
  224. {
  225.     tagNMHDR nmhdr;
  226.     int cObjectCount;
  227.     int *pcpPositions;
  228. } ;
  229. #pragma pack(pop)
  230.  
  231. struct TENLink
  232. {
  233.     tagNMHDR nmhdr;
  234.     int msg;
  235.     int wParam;
  236.     int lParam;
  237.     _charrange chrg;
  238. } ;
  239.  
  240. typedef _encorrecttext  TENCorrectText;
  241.  
  242. typedef _punctuation  TPunctuation;
  243.  
  244. typedef _compcolor  TCompColor;
  245.  
  246. typedef _repastespecial  TRepasteSpecial;
  247.  
  248. enum UNDONAMEID { UID_UNKNOWN, UID_TYPING, UID_DELETE, UID_DRAGDROP, UID_CUT, UID_PASTE };
  249.  
  250. struct TGetTextEx
  251. {
  252.     int cb;
  253.     int flags;
  254.     int codepage;
  255.     char *lpDefaultChar;
  256.     BOOL *lpUsedDefChar;
  257. } ;
  258.  
  259. struct TGetTextLengthEx
  260. {
  261.     int flags;
  262.     int codepage;
  263. } ;
  264.  
  265. //-- var, const, procedure ---------------------------------------------------
  266. #define RICHEDIT_CLASS10A "RICHEDIT"
  267. #define TM_PLAINTEXT (Byte)(1)
  268. #define TM_RICHTEXT (Byte)(2)
  269. #define TM_SINGLELEVELUNDO (Byte)(4)
  270. #define TM_MULTILEVELUNDO (Byte)(8)
  271. #define TM_SINGLECODEPAGE (Byte)(16)
  272. #define TM_MULTICODEPAGE (Byte)(32)
  273. #define FT_MATCHCASE (Byte)(4)
  274. #define FT_WHOLEWORD (Byte)(2)
  275.  
  276. }    /* namespace Richedit */
  277. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  278. using namespace Richedit;
  279. #endif
  280. //-- end unit ----------------------------------------------------------------
  281. #endif    // RichEdit
  282.